package cn.tedu.csmall.product.ex;

import cn.tedu.csmall.product.web.ServiceCode;

import java.io.Serializable;

/**
 * 自定义的异常
 * @author 程旭东
 */
public class ServiceException extends RuntimeException implements Serializable {
    private ServiceCode serviceCode;

    public ServiceException(ServiceCode serviceCode, String message) {
        super(message);
        this.serviceCode = serviceCode;
    }

    public ServiceCode getServiceCode() {
        return serviceCode;
    }
}
